import React from 'react';
import routes from '../../route/route';
import { BrowserRouter, Routes, Route } from 'react-router-dom'

export default function App() {
  return (
    <React.Fragment>
      <BrowserRouter>
        <Routes>
          {routes.map((r) => (
            <Route
              key={r.path}
              path={r.path}
              element={r.element()}
            />
          ))}
        </Routes>
      </BrowserRouter>
    </React.Fragment>
  );
}

;
